//
//  UIScrollView+MGRefresh.h
//  Express
//
//  Created by lhongl on 2025/9/26.
//  Copyright © 2025 QM. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView (MGRefresh)

/// 刷新
/// - Parameter headerBlock: 刷新回调
- (void)initHeaderRefresh:(void(^)(void))headerBlock;

/// 加载
/// - Parameter footerBlock: 加载回调
- (void)initFooterRefresh:(void(^)(void))footerBlock;

/// 刷新加载
/// - Parameters:
///   - headerBlock: 刷新回调
///   - footerBlock: 加载回调
- (void)initHeaderRefresh:(void(^)(void))headerBlock
            FooterRefresh:(void(^)(void))footerBlock;

/// 开始刷新
- (void)startRefreshing;

/// 结束刷新
- (void)finshRefreshing;


/// 隐藏footer
/// - Parameter hiddle: 状态
- (void)setFooterHidden:(BOOL)hiddle;

@end

NS_ASSUME_NONNULL_END
